﻿using System.ComponentModel.DataAnnotations.Schema;

namespace ExcellentCRM.DataService.Models
{
    /// <summary>
    /// 角色菜单
    /// </summary>
    public class RoleMenu : BaseModel
    {
        public long RoleId { get; set; }

        public long MenuId { get; set; }

        [ForeignKey("RoleId")]
        public Role Role { get; set; }

        [ForeignKey("MenuId")]
        public Menu Menu { get; set; }
    }
}